package com.jiazhong.mingxing.project.bookstore.commons.util;

public class ResultTool {

    public static JsonResult success(Object data) {
        return new JsonResult(data);
    }

    public static JsonResult fail(String error, int code) {
        return new JsonResult(error, code);
    }

}
